<template>
	
	<view class="certmain">
		<uni-nav-bar shadow title="证书详情" @clickLeft="$wanlshop.back(1)" left-icon="left" height="88rpx" :border="false" :fixed="true" backgroundColor="#FFFFFF"
			:shadow="false"></uni-nav-bar>
		<image :src="cert_againsts" mode=""></image>
			<image :src="cert_justs" mode=""></image>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				ImgInfo:{},
				cert_justs:"",
				cert_againsts:""
			}
		},
		onLoad(e){
			console.log(e)
			
			this.cx(e.id,e.name,e.noid)
		},
		onReady() {
		
		},
		
		methods: {
			cx(id,name,idno) {
	
					this.$api.post({
						url: '/cert/getCertInfo',
						data: {
							name: name,
							id_no: idno,
							exam_bank_cate_id: id
						},
						header: {
							'Content-Type': 'application/x-www-form-urlencoded'
						},
						success: res => {
							console.log(res)
							this.cert_justs = res.cert_justs
								this.cert_againsts = res.cert_againsts
								
						},
						fail: error => {
							console.log(error)
						}
					})
				

			}
		}
	}
</script>

<style lang="scss">
	.certmain {
		min-height: 100vh;
		width: 100%;
		background-color: #FFFFFF;
		text-align: center;
		image{
			margin: 20rpx auto;
			width: 540rpx;
			height: 762rpx;
		}
	}
</style>
